export const gent = (r: string) => {
    return [r + 'H', r + 'H2O', 'X' + r + 'H2O', r + 'O', r + 'HO2', 'X' + r + 'HO2']
}

export const baseRes = ['energy', 'U', 'L', 'K', 'Z', 'X', 'O', 'H', 'G']

export const powerRes = ['power', 'ops']

export const barsRes = [
    'battery',
    'utrium_bar',
    'lemergium_bar',
    'keanium_bar',
    'zynthium_bar',
    'purifier',
    'oxidant',
    'reductant',
    'ghodium_melt',
]

export const c_greyRes = ['composite', 'crystal', 'liquid']

export const c_blueRes = ['silicon', 'wire', 'switch', 'transistor', 'microchip', 'circuit', 'device']

export const c_yellowRes = ['metal', 'alloy', 'tube', 'fixtures', 'frame', 'hydraulics', 'machine']

export const c_pinkRes = ['mist', 'condensate', 'concentrate', 'extract', 'spirit', 'emanation', 'essence']

export const c_greenRes = ['biomass', 'cell', 'phlegm', 'tissue', 'muscle', 'organoid', 'organism']

export const b_greyRes = ['OH', 'ZK', 'UL', 'G']

export const b_blueRes = gent('U')
export const b_yellowRes = gent('Z')
export const b_pinkRes = gent('K')
export const b_greenRes = gent('L')
export const b_witheRes = gent('G')

export const RES_COLOR_MAP: { [key: string]: string } = {
    empty: 'rgba(0,0,0,0)',
    energy: '#fff200',
    battery: '#fff200',
    Z: '#f7d492',
    L: '#6cf0a9',
    U: '#4ca7e5',
    K: '#da6Bf5',
    X: '#ffc0cb',
    G: '#fff',
    zynthium_bar: '#f7d492',
    lemergium_bar: '#6cf0a9',
    utrium_bar: '#4ca7e5',
    keanium_bar: '#da6Bf5',
    purifier: '#ffc0cb',
    ghodium_melt: '#fff',
    power: '#e05a5a',
    ops: '#e05a5a',
    composite: '#fff',
    crystal: '#fff',
    liquid: '#fff',
    device: '#4ca7e5',
    circuit: '#4ca7e5',
    microchip: '#4ca7e5',
    transistor: '#4ca7e5',
    switch: '#4ca7e5',
    wire: '#4ca7e5',
    silicon: '#4ca7e5',
    machine: '#f7d492',
    hydraulics: '#f7d492',
    frame: '#f7d492',
    fixtures: '#f7d492',
    tube: '#f7d492',
    alloy: '#f7d492',
    metal: '#f7d492',
    essence: '#da6Bf5',
    emanation: '#da6Bf5',
    spirit: '#da6Bf5',
    extract: '#da6Bf5',
    concentrate: '#da6Bf5',
    condensate: '#da6Bf5',
    mist: '#da6Bf5',
    organism: '#6cf0a9',
    organoid: '#6cf0a9',
    muscle: '#6cf0a9',
    tissue: '#6cf0a9',
    phlegm: '#6cf0a9',
    cell: '#6cf0a9',
    biomass: '#6cf0a9',
    OH: '#fff',
    ZK: '#fff',
    UL: '#fff',
    UH: '#4ca7e5',
    UH2O: '#4ca7e5',
    XUH2O: '#4ca7e5',
    UO: '#4ca7e5',
    UHO2: '#4ca7e5',
    XUHO2: '#4ca7e5',
    ZH: '#f7d492',
    ZH2O: '#f7d492',
    XZH2O: '#f7d492',
    ZO: '#f7d492',
    ZHO2: '#f7d492',
    XZHO2: '#f7d492',
    KH: '#da6Bf5',
    KH2O: '#da6Bf5',
    XKH2O: '#da6Bf5',
    KO: '#da6Bf5',
    KHO2: '#da6Bf5',
    XKHO2: '#da6Bf5',
    LH: '#6cf0a9',
    LH2O: '#6cf0a9',
    XLH2O: '#6cf0a9',
    LO: '#6cf0a9',
    LHO2: '#6cf0a9',
    XLHO2: '#6cf0a9',
    GH: '#fff',
    GH2O: '#fff',
    XGH2O: '#fff',
    GO: '#fff',
    GHO2: '#fff',
    XGHO2: '#fff',
    H: '#fff',
    O: '#fff',
    oxidant: '#fff',
    reductant: '#fff',
}
